package org.wyp.wang;

import org.apache.shiro.SecurityUtils;

/**
 * Created by lenovo on 2017/6/26.
 */
public class AuthorizeDemo1 {

    public static void main(String[] args) {
        WangUtils.login("classpath:authorize-shiro1.ini","wyp","123");
        System.out.println(SecurityUtils.getSubject().hasRole("role1"));
        System.out.println(SecurityUtils.getSubject().hasRole("role2"));
    }
}
